package com.ruoyi.business.mapper;

import java.util.Date;
import java.util.List;
import com.ruoyi.business.domain.EmployeeAwardsInfo;
import org.apache.ibatis.annotations.Delete;

/**
 * 员工彰奖励信息Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-17
 */
public interface EmployeeAwardsInfoMapper 
{
    /**
     * 查询员工彰奖励信息
     * 
     * @param id 员工彰奖励信息主键
     * @return 员工彰奖励信息
     */
    public EmployeeAwardsInfo selectEmployeeAwardsInfoById(Long id);

    /**
     * 查询员工彰奖励信息列表
     * 
     * @param employeeAwardsInfo 员工彰奖励信息
     * @return 员工彰奖励信息集合
     */
    public List<EmployeeAwardsInfo> selectEmployeeAwardsInfoList(EmployeeAwardsInfo employeeAwardsInfo);

    /**
     * 新增员工彰奖励信息
     * 
     * @param employeeAwardsInfo 员工彰奖励信息
     * @return 结果
     */
    public int insertEmployeeAwardsInfo(EmployeeAwardsInfo employeeAwardsInfo);

    /**
     * 修改员工彰奖励信息
     * 
     * @param employeeAwardsInfo 员工彰奖励信息
     * @return 结果
     */
    public int updateEmployeeAwardsInfo(EmployeeAwardsInfo employeeAwardsInfo);

    /**
     * 删除员工彰奖励信息
     * 
     * @param id 员工彰奖励信息主键
     * @return 结果
     */
    public int deleteEmployeeAwardsInfoById(Long id);

    /**
     * 批量删除员工彰奖励信息
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEmployeeAwardsInfoByIds(Long[] ids);

    @Delete("DELETE FROM t_employee_Awards_Info")
    void clearTable();

    @Delete("DELETE FROM t_employee_Awards_Info WHERE DATE_FORMAT(award_year, '%Y') = DATE_FORMAT(#{awd}, '%Y')")
    void clearTableYear(Date awd);
}
